from langgraph.types import Command, interrupt
from langchain_core.tools import tool

@tool
def human_assistance_tool(query: str) -> str:
    """请求人类的帮助。"""
    print("请求人类的帮助")
    human_response = interrupt({"query": query})
    print('data:',human_response["data"])
    return human_response["data"]
